package com.leectrl.utils;

import android.content.Context;

import org.xutils.DbManager;
import org.xutils.ex.DbException;
import org.xutils.x;

public class DbUtil {
    private static  DbManager dbManager;
    public static void init(Context context, DbManager.DaoConfig daoConfig){
        try {
            dbManager=x.getDb(daoConfig);
        } catch (DbException e) {
            e.printStackTrace();
        }
    }

    public static DbManager getInstance(){
        return dbManager;
    }

}
